<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>simple</title>
  </head>
  <body>
    <div class="total">
      <div class="header">head-line</div>
      <div class="container">
        <div class="aside">aside</div>
        <div class="main">main</div>
      </div>
    </div>
    <style>
      .container{
        /* width: auto; */
        height: 700px;
        background-color: blue;
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: stretch;

      }
      .total {
        width: 800px;
        height: 800px;
        background-color: beige;
        display: flex;
        flex-direction: column;
        justify-content: center;
    
        align-items: stretch;
        /* 布局 */
      }
      .header {
        /* width: 800px; */
        width: auto;
        height: 48px;
        background-color: blueviolet;
      }
      .aside {
        width: 200px;
        height: auto;
        background-color: red;
      }
      .main {
        width: 100px;
        flex:1;
        height: auto;
        background-color: skyblue;

      }
    </style>
  </body>
</html>
